package FirstWeek;

import Basic.IO;

public class Fifth {
    public static void res(){
        String str = IO.inputString("请输入一个数组（以','作为分割）：");
        String[] temp = str.split(",");
        int[] a = new int[temp.length];
        int sum = 0;

        for(int i = 0; i < temp.length; i++){
            a[i] = Integer.parseInt(temp[i]);
            sum+=a[i];
        }



        int aver = sum / a.length;

        for(int i = 0; i < a.length; i++){
            if(a[i] > aver){
                System.out.print(a[i]+"\t");
            }
            System.out.print("\n");
        }
    }
}
